Step 1: Installing Compose in the cluster
This topic describes how to install Compose in a high availability cluster environment.
Preparation
Allocate two shared folders for Compose: one for the Compose server and the other for the Compose agent
The setup instructions below assume that the Compose data folder is F:\Compose-server-data and the Compose Agent data folder is F:\Compose-agent-data.
Primary node setup
- Install Compose.
-
Generate a 32 character random master key by running the following command from <PRODUCT_DIR>\bin:
ComposeCtl.exe utils genpassword
The setup instructions below assume that your key is
WdAHWEwXSvwxDFetcl7TVVFfSXPbMrFx
- Stop the Compose service.
-
Edit the service executable path as follows:
SC CONFIG QlikCompose binPath= "<PRODUCT_DIR>\bin\ComposeCtl.exe -d F:\server-server-data service run”
Example:
SC CONFIG QlikCompose binPath="\"C:\Program Files\Qlik\Compose\bin\ComposeCtl.exe\" -d \"F:\Compose-server-data\" service run"
-
Run the following commands from <PRODUCT_DIR>\bin:
ComposeCtl.exe -d "F:\Compose-server-data" setup install
ComposeCtl.exe -d "F:\Compose-server-data" masterukey set -p WdAHWEwXSvwxDFetcl7TVVFfSXPbMrFx
-
Edit <PRODUCT_DIR>\java\bin\acjs.bat and immediately below the line with SET JAVA_LIB_PATH, add the following:
set AT_DATA=-d F:\Compose-agent-data
-
Start the Compose service and then stop it. This will create the java repository.
Information noteThis step should be performed on the primary node only.
-
Run the following command from <PRODUCT_DIR>\java\bin:
acjs.bat masterukey set WdAHWEwXSvwxDFetcl7TVVFfSXPbMrFx
-
Start the Compose service and then stop it.
- In the Cluster Manager, move to the secondary node.
Secondary node setup
- Install Compose.
- Stop the Compose service.
-
Edit the service executable path as follows:
SC CONFIG QlikCompose binPath= "<PRODUCT_DIR>\bin\ComposeCtl.exe -d F:\server-server-data service run”
Example:
SC CONFIG QlikCompose binPath="\"C:\Program Files\Qlik\Compose\bin\ComposeCtl.exe\" -d \"F:\Compose-server-data\" service run"
-
Run the following commands from <PRODUCT_DIR>\bin:
ComposeCtl.exe -d "F:\Compose-server-data" setup install
ComposeCtl.exe -d "F:\Compose-server-data" masterukey set -p WdAHWEwXSvwxDFetcl7TVVFfSXPbMrFx
-
Edit <PRODUCT_DIR>\java\bin\acjs.bat and immediately below the line with SET JAVA_LIB_PATH, add the following:
set AT_DATA=-d F:\Compose-agent-data
-
Run the following command from <PRODUCT_DIR>\java\bin:
acjs.bat masterukey set WdAHWEwXSvwxDFetcl7TVVFfSXPbMrFx
-
Start the Compose service and then stop it.
- In the Cluster Manager, move to the next nodes if your cluster has more than two nodes.